Skip to content

Conversation

@ulissesalmeida
Copy link
Contributor

@ulissesalmeida ulissesalmeida commented Jan 7, 2025

The https://duffel.com/docs/api/bookings/list-bookings now supports pagination params.

So it mimics add pagination parameters like it does for Flights orders.

@ulissesalmeida ulissesalmeida requested a review from a team as a code owner January 7, 2025 15:37
@ulissesalmeida ulissesalmeida self-assigned this Jan 7, 2025

const response = duffel.stays.bookings.listWithGenerator()

for await (const page of response) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

witty

@ulissesalmeida ulissesalmeida merged commit 6d7ce21 into main Jan 8, 2025
4 checks passed
@ulissesalmeida ulissesalmeida deleted the ulisses/stay-2212-allow-js-sdk-to-paginate-booking-list branch January 8, 2025 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants